<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/erp/T_window_goods.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/erp/T_window_goods.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'c_id',
                    footer: "Foots",
                    cnName: 't_window_goods',
                    name: 'T_window_goods',
                    url: "/T_window_goods/",
                    sortName: "c_id"
                },
                extend: extend,
                editFormFields: {"c_code":"","c_sku_id":"","c_shelf_start_time":"","c_shelf_end_time":"","c_service_point_id":"","c_order":"","c_operator_name":"","c_operator_id":"","c_operat_time":"","c_menu_id":"","c_lock_up_time":"","c_id":"","c_goods_id":"","c_end_interval":"","c_disabled":"","c_date":"","c_creator_name":"","c_creator_id":"","c_create_time":"","c_color":"","c_start_interval":"","c_status":""},
                editFormOptions: [[{"title":"c_code","field":"c_code","type":"text"},
                               {"title":"c_sku_id","field":"c_sku_id","type":"text"},
                               {"title":"上架时间","field":"c_shelf_start_time","disabled":true,"type":"datetime"},
                               {"title":"下架时间","field":"c_shelf_end_time","disabled":true,"type":"datetime"}],
                              [{"title":"c_service_point_id","field":"c_service_point_id","type":"text"},
                               {"title":"排序","field":"c_order","type":"text"},
                               {"title":"c_operator_name","field":"c_operator_name","type":"text"},
                               {"title":"c_operator_id","field":"c_operator_id","type":"text"}],
                              [{"title":"c_operat_time","field":"c_operat_time","disabled":true,"type":"datetime"},
                               {"title":"c_menu_id","field":"c_menu_id","type":"text"},
                               {"title":"c_lock_up_time","field":"c_lock_up_time","type":"text"},
                               {"title":"c_id","required":true,"field":"c_id","disabled":true,"type":"text"}],
                              [{"title":"c_goods_id","field":"c_goods_id","type":"text"},
                               {"title":"c_end_interval","field":"c_end_interval","type":"text"},
                               {"title":"c_disabled","field":"c_disabled","type":"text"},
                               {"title":"c_date","field":"c_date","type":"text"}],
                              [{"title":"c_creator_name","field":"c_creator_name","type":"text"},
                               {"title":"c_creator_id","field":"c_creator_id","type":"text"},
                               {"title":"创建时间","field":"c_create_time","disabled":true,"type":"text"},
                               {"title":"c_color","field":"c_color","type":"text"}],
                              [{"title":"c_start_interval","field":"c_start_interval","type":"text"},
                               {"title":"状态","field":"c_status","type":"text"}]],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'c_code',title:'c_code',type:'string',width:120,align:'left',sortable:true},
                       {field:'c_sku_id',title:'c_sku_id',type:'string',width:120,align:'left'},
                       {field:'c_shelf_start_time',title:'上架时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_shelf_end_time',title:'下架时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_service_point_id',title:'c_service_point_id',type:'string',width:120,align:'left'},
                       {field:'c_order',title:'排序',type:'int',width:120,align:'left'},
                       {field:'c_operator_name',title:'c_operator_name',type:'string',width:120,align:'left'},
                       {field:'c_operator_id',title:'c_operator_id',type:'string',width:120,align:'left'},
                       {field:'c_operat_time',title:'c_operat_time',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_menu_id',title:'c_menu_id',type:'string',width:120,align:'left'},
                       {field:'c_lock_up_time',title:'c_lock_up_time',type:'string',width:120,align:'left'},
                       {field:'c_id',title:'c_id',type:'string',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'c_goods_id',title:'c_goods_id',type:'string',width:120,align:'left'},
                       {field:'c_end_interval',title:'c_end_interval',type:'string',width:120,align:'left'},
                       {field:'c_disabled',title:'c_disabled',type:'sbyte',width:120,align:'left'},
                       {field:'c_date',title:'c_date',type:'string',width:120,align:'left'},
                       {field:'c_creator_name',title:'c_creator_name',type:'string',width:120,align:'left'},
                       {field:'c_creator_id',title:'c_creator_id',type:'string',width:120,align:'left'},
                       {field:'c_create_time',title:'创建时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_color',title:'c_color',type:'string',width:120,align:'left'},
                       {field:'c_start_interval',title:'c_start_interval',type:'string',width:120,align:'left'},
                       {field:'c_status',title:'状态',type:'int',width:120,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
